
package co.edu.uniandes.vehialpes.servlet;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collection;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import co.edu.uniandes.vehialpes.facade.VehialpesFacade;

/**
 * Servlet
 */
public class VehialpesServlet extends HttpServlet
{

    // -----------------------------------------------------------------
    // Metodos
    // -----------------------------------------------------------------

    /**
	 * serial
	 */
	private static final long serialVersionUID = 1L;

	public void doPost(HttpServletRequest request, HttpServletResponse response) 
	throws ServletException, IOException {
		
		String solicitud = (String)request.getParameter("solicitud"); // Obtenemos parametro de consulta.
		
		VehialpesFacade.darInstancia().solicitarServicio(solicitud);
		getServletConfig().getServletContext().getRequestDispatcher(
        "/respuesta.jsp").forward(request,response);
	
	}
}
